import {create} from "zustand";
import httpClient from "@/lib/http-client";

type SecuStore = {
    secuInfo: any | null;
    fetchSecuInfo: (code: string) => Promise<void>;
}


export const useSecuStore = create<SecuStore>((set, get) => ({
    secuInfo: null,
    fetchSecuInfo: async (code: string) => {
        const resp = await httpClient.get(`/api/secu/info/${code}`);
        console.log(resp);
    }
}));